import Vue from 'vue'
import Router from 'vue-router'

Vue.use(Router)

const home = () => import('../views/home.vue')
const test1 = () => import('../views/test1.vue')
const test2 = () => import('../views/test2.vue')
const test3 = () => import('../views/test3.vue')

export function createRouter () {
  return new Router({
    mode: 'history',
    fallback: false,
    routes: [
      { path: '/', component: home },
      { path: '/test1', component: test1 },
      { path: '/test2', component: test2 },
      { path: '/test3', component: test3 }
    ]
  })
}
